package thread;

//工厂模式
class Point{

}
class PointFactory{
    public static Point makePointByxy(double x,double y){
        Point p=new Point();
        //通过xy给p进行属性设置
        return p;
    }
    public static Point makePointByra(double r,double a){
        Point p=new Point();
        //通过ra给p进行属性设置
        return p;
    }
}

public class Demo30 {
    public static void main(String[] args) {
        //Point p1=PointFactory.makePointByra(x,y);
    }
}
